﻿#include "mainwindow.h"
#include <QApplication>
#include <qdebug.h>
#include "login_dialog.h"
#include "basal_sql.h"
#include "home_dialog.h"
#include "cash_produce_dialog.h"
#include "con_produce_dialog.h"
#include "supply_dialog.h"
#include "record_dialog.h"
#include "emp_dialog.h"
#include "vip_dialog.h"
#include "purchase_dialog.h"
//程序开始执行的位置
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QSqlDatabase database;
    database = QSqlDatabase::addDatabase("QSQLITE");
    database.setDatabaseName("./supermarket.db");
    database.open();

     // MainWindow w;
     login_dialog w;
    // home_dialog w;
     // cash_produce_dialog w;
    // con_produce_dialog w;
    // supply_dialog w;
     //record_dialog w;
     //emp_dialog w;
     // vip_dialog w;
     // purchase_dialog w;
     w.show();
    return a.exec();

}
